package com.bitters.core.exception;

import com.bitters.enums.ErrorCodeAndMsg;

/**
 * @author thomashe
 * @date 2023/10/20/ 16:16
 * @description
 */
public class BizRuntimeException extends RuntimeException {
    private static final long serialVersionUID = -6370612186038915645L;

    private final ErrorCodeAndMsg response;

    public BizRuntimeException(ErrorCodeAndMsg response) {
        this.response = response;
    }

    public ErrorCodeAndMsg getResponse() {
        return response;
    }
}
